#!/bin/bash

# 进入前端项目目录
cd web

# 安装依赖
echo "Installing frontend dependencies..."
npm install

# 构建前端项目
echo "Building frontend..."
npm run build

# 返回项目根目录
cd ..

# 构建后端项目
echo "Building backend..."
go build -o bin/windsurf ./cmd/main.go

echo "Build complete!"
